<template>
  <el-form label-width="100px">
    <CommonProps fieldDisabled />
    <el-form-item label="默认行数">
      <el-input-number v-model="fs.getProps().rows" placeholder="请输入默认行数" :min="2" controls-position="right" />
    </el-form-item>
    <el-form-item label="最多输入">
      <el-input v-model="fs.getProps().length" placeholder="请输入长度" oninput="value=value.replace(/[^\d]/g,'')">
        <template #append>个字符</template>
      </el-input>
    </el-form-item>
    <CommonPropsTwo />
  </el-form>
</template>

<script setup lang="ts">
import CommonProps from '../../common-props/Props.vue'
import CommonPropsTwo from '../../common-props/PropsTwo.vue'
import { ElForm, ElFormItem, ElInput, ElInputNumber } from 'element-plus'
import { useFlowStore } from '@/stores/flow'

const fs = useFlowStore()
</script>

<style lang="scss" scoped></style>
